home *** CD-ROM | disk | FTP | other *** search
- Path: eagle.novo.dk!usenet
- From: morb@novo.dk (Morten Brun)
- Newsgroups: comp.lang.c++
- Subject: VC++ v.4.0 conversion problems
- Date: Thu, 18 Jan 1996 16:23:20 GMT
- Organization: Novo Nordisk
- Message-ID: <4dls1n$ldp@eagle.novo.dk>
- NNTP-Posting-Host: dhcp250-178.novo.dk
- X-Newsreader: Forte Free Agent 1.0.82
-
- I am having a lot of problems when compiling under v.4. as I am etting
-
- a lot of conversions errors due to the new behavior of v.4 like:
- -----------------------------------------------------------------------------
- LPWSTR lpszName;
-
- GetPrivateProfileStringA("x", "y", "",lpszName, sizeof(lpszName),
- \\xxx.INI");
-
- error c26664: cannot convert parm. 4 from unsigned short * to char *
- ---------------------------------------------------------------------------------
- or
- error C2446: '=' : no conversion from 'char *' to 'unsigned char *'
- error C2664: 'wcstombs' : cannot convert parameter 1 from 'unsigned
- char [32]' error C2664: 'mbstowcs' : cannot convert parameter 2 from
- 'unsigned char *' to 'const char *'
- error C2664: 'ctime' : cannot convert parameter 1 from 'unsigned long
- *' to 'const long *'
- ----------------------------------------------------------------------------------------
- As I am e new to C++ and VC++ I have serious trouble in getting these
- functions to work. Are there anybody which please could give me some
- good ideas of how I without to much work can get my program to work ??
-
- Regards Morten
-
-
-
- Morten Brun
- Novo Nordisk IT, Denmark
- morb@novo.dk
-
-